<?php
include_once 'admin-functions.php';
include_once '../functions.php';
if (isset($_SESSION['logged_in'])) {} else {header('Location: login.php');exit;}
?>
<h2><?php
echo "Hello ";
echo $_SESSION['account_name'];
echo "! ";
?></h2>
<p>You are running <?php print_version();?>. What do you want to do today?</p>
<p>Rank: 
<?php switch ($_SESSION['account_rank']) {
		case 0:echo "<strong>Administrator";break;
		case 1:echo "<strong>Basic User";break;
		case 2:echo "<strong>Write Only User";break;
		}
?></strong>
<br />
Posts: <strong><?php echo $number_of_entries;?></strong><br />
Users: <strong><?php $content = parse_ini_file("./users.ini.php", true); echo count($content);
$server = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
echo $server;
?></strong><br />



